import { createApp } from "vue";
// 自动生成的样式,一定要注释
// import "./style.css";
import App from "./App.vue";
import router from "./router/index";
import ElementPlus from "element-plus";
import zhCn from "element-plus/es/locale/lang/zh-cn"
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { createPinia } from "pinia";
import myconfirm from "./utils/myconfirm";
const pinia = createPinia();
const app = createApp(App);
app.use(router).use(ElementPlus,{
  locale: zhCn,
}).use(pinia).mount("#app");
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 挂载myconfirm方法到全局
app.config.globalProperties.$myconfirm = myconfirm;